﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _02_委托练习
{
    public partial class Frm_P2PMove : Form
    {
        public Frm_P2PMove(int x,int y)
        {
            InitializeComponent();
            this.textBox1.Text = x.ToString();
            this.textBox2.Text = y.ToString();
        }

        private void Frm_P2PMove_FormClosed(object sender, FormClosedEventArgs e)
        {
            MainForm.p2P运动delToolStripMenuItemEable.Invoke(true);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            MainForm.delSetButtonLocation.Invoke(int.Parse(this.textBox1.Text),int.Parse(this.textBox2.Text));
        }
    }
}
